use preDelete instead of postDelete hook
improve validation of getFileInfo in \OC\Preview
Merge pull request #7704 from owncloud/preview_use_pre_instead_of_post_delete_hook_2

use preDelete instead of postDelete hook