adding check isDeletable() on $sourcePath
Merge pull request #5194 from owncloud/fixing-5172-master

adding check isDeletable() on $sourcePath