remove redundant null-check
Merge pull request #736 from dennishendriksen/master

Remove redundant null-check