Create a dummy user before hooks are set. Ref #11289

See https://github.com/owncloud/core/issues/11289#issuecomment-57015653 for details