Fixed NullPointerException when processing invalid images; also mark the
artwork image as invalid in the database.

Further on the TVDb artwork scanner uses lur caching to reduce TheTVDb
requests.