Propertly restore thumbnail on cancel/rename/move

Since the thumbnail is now in a div, the code that tries to change the
thumbnail have been adapted here as well.
Merge pull request #12902 from owncloud/fix-filelist-thumbnails

Propertly restore thumbnail on cancel/rename/move