The personal wireless service provider shall defend, indemnify and hold harmless the city or any of its boards, commissions, agents, officers, and employees from any claim, action or proceeding against the city, its boards, commissions, agents, officers, or employees to attack, set aside, void, or annul, the approval of the project, unless such claim, action, or proceeding is based on the city's negligence or misconduct, when such claim or action is brought within the time period provided for in applicable state and local statutes. The city shall promptly notify the providers of any such claim, action or proceeding. Nothing contained in this subsection shall prohibit the city from participating in a defense of any claim, action, or proceeding if the city bears its own attorney fees and costs, and the city defends the action in good faith.