Fix loading resources from main config file

$config['mapping'] doesn't have a default value. You can read resources only if mapping section is defined in main config file.
If you have auto routing defined per bundle you dont'have it.