Fixed error handling in PeopleController