PDI-10389 Text File Output Step throws a null pointer error when "Do not...

... create file at start" is checked, "Add Ending line of file" is valued, and transformation does not pass any rows to the file input step.

 Reopened. Fixed regression`s  situation. Added unit test.