autoFight and autoQuest enhancements

Loop with while when looking for a new type instead of waiting for the next mob.

Make sure non-standard quests don't throw undefined error.