only send activity if we have a valid path and the file is readable
Merge pull request #13012 from owncloud/small_fix

only send activity if we have a valid path and the file is readable