Fix null values incorrectly filtered

This PR fixes issue #3 and adds tests for this use case. Let me know if you have any suggestions.

@OVRBoone: Sorry for stepping on your PR but we really needed this fixed.