LPS-47291 validate input file only when it is not null