fix(config): make it possible to init app with empty domain

hi - now you can use `app.register_resource` to define your domain but if you start app without any resource predefined you get an exception. i think it should not while you can define resources later