[PDI-6532] junit test for parsing mail functionality
[PDI-6532] Fix for not-existing Header provided