fixes https://github.com/owncloud/core/issues/2071

fixes https://github.com/owncloud/core/issues/2071

@georgehrke