Check if schema exists before load a config.

Related to #3310.
Merge remote-tracking branch 'ivan/feature/check-if-schema-exists' into develop