[PDI-13080] When no records get sent to a PMR Reducer, the PMR Job Fails...

* Added check for null
* Added unit test
* Checked at CDH51