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.

Changed condition for writing ending to a file in case of empty data.