Toronto police chats undermined testimony. But it was whistleblower who got fired