Check if schema exists before load a config.

Related to #3310.