Bugfix: Register store which is imported instead of required

As some extensions export store not as a module we need to handle that case as well.

https://github.com/owncloud/web/issues/2837