improve validation of getFileInfo in \OC\Preview