Fix fatal errors when deleting files

#5279 
Seems this caused when trying to delete cropped files. once file_load() didn't return a file object, file_usage_list() gave a fatal error. By wrapping it we avoid any future failures as well.