Guarding against precondition failure for Qry.isNull
fixing bug in single-object comparison to null code