Fix for ThumbnailError when input file is None