[CoreBundle] Fixed problem when this bundle is configured to load YAML files.