[PDI-7243] - JSON Output Step throws NullPointerException when previewing no rows - add condition to avoid null value and introduce a test
Merge pull request #681 from akhayrutdinov/SP-1385

[PDI-7243] - JSON Output Step throws NullPointerException when previewing no rows