Fixed Thumbnail comparison with None object in Python 3.