fix odd behaviour
Merge pull request #11894 from owncloud/fix-unreachable-code

fix odd behaviour