[PDI-8870] NPE on Concat step when remove selected fields AND header row are checked

<h1>DIRECT-MASTER</h1>

* Changed prepareForReMap(); and checkAndWriteHeader(); - were swaped;
* Added unit test