Removed comparisons with None
Fixed typo in comment
Merge pull request #2308 from dmitriy-serdyuk/none_checks

Removed comparisons with None