Don't crash on bad file_get_contents of image import