[PDI-13080][5.2] When no records get sent to a PMR Reducer, the PMR Job Fails with Null Pointer Exceptions

Backport of https://github.com/pentaho/pentaho-hadoop-shims/pull/167 to 5.2