Backport of PDI-11169 - MongoDB Output throws Null Pointer when fields are blank (5.0)

Backport of SP-991 (PDI-1169): MongoDB Output NPE with blank fields