Fixes https://github.com/owncloud/apps/issues/1549