Handle null case in  where the data's field may not be set

This bug comes up when you are testing against the field (a) which may be null.