Enhancing LLM-based Autonomous Driving Agents to Mitigate Perception Attacks