Fixing a bug with the imagifier where no images generates a fatal exception.