fixed bug where file preview wouldn't be cleared after deleting a file.

Change-Id: Iffdc2c8b1027ae4c54b29d9da2588f9bdb2a3645