documents: Clear the thumbnail path if the thumbnail is invalid

In some cases, thumbnailing might have failed even if we have a path to
the thumbnail image. eg., the downloaded thumbnail for some Google
Drive content might be damaged.

Clear the thumbnail path and remove the invalid file to maintain the
invariants assumed by the code.

https://bugzilla.gnome.org/show_bug.cgi?id=720533