Fix NULL and NOT_NULL conditions in 'scan'
Merge pull request #90 from ikhudoshyn/not-null-scan-fix

Fix NULL and NOT_NULL conditions in 'scan'