Adds a setting category to the menu, and prevent some crashes

Prevent the menu to crash in the following situations:
- core directory not set
- roms directory not set
- trying to enter a category without items