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