[tor-commits] [collector/master] Add argument check to constructor and removed redundant code.