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

fix patch to be compatible with old behaviour