prevent PHP notice
Merge pull request #11877 from owncloud/fix-11875-master

prevent PHP notice