#JC-1262 Added handling for empty file, all error messages are shown in alerts