SP-1322  Backport of PDI-12155 - Error when saving a transformation with MongoDB Output step into Kettle Database Repository (5.1) 

There are fix and unit tests.