First check whether it is the default config before touchign

Potentially fixes https://github.com/owncloud/core/issues/11678
Merge pull request #11924 from owncloud/firstCheckIfItIsDefaultConfig

First check whether it is the default config before touching