[PDI-10436] NPE in MongoDB Input step when clicking on "Sample: array mi...

...n:max index" column on Fields tab. Also snuck in a fix for [PDI-10213] (which is already in master but I must have forgot to port to pdi4compatible).