Changed npc loader to return default json when debug=True