@WIP: Add validation to csv import based on content type.

#6054 

WIP

Validation of uploaded CSV file is performed according to the content type.
Lets return here if we have an error, to prevent too many warnings from entity-validator.