Some more checking against null images read from URLs to try to prevent
the program crashing when reading from a URL fails