removed unnecessary null check
Merge pull request #781 from hneuer/doublecheck

removed unnecessary null check