Correctly handle __null=True and __null=False filters for Model.scan, fixes #24