[PDI-11190]: Do not create file at start is still creating zero byte files

There are fix and unit test.
Merge pull request #494 from TatsianaKasiankova/PDI-11190

[PDI-11190]: Do not create file at start is still creating zero byte files