Slightly better error handling in updaterepresentatives