handle empty master_file error (or illegal content)