Graceful error handling for missing spells/factions (Fixes #1825, Bug #2176, Bug #2203)