NXP-15638: fix kept input file on validation error