Fix checking for document field path which includes null value.
Test for checking existence of document fields.