Fix case when embedded document has null value in Has and IsNull methods.