it happens all the time. My least favorite is the ref out at half court calling a foul under the basket when they've got a colleague under the basket staring at the play and not blowing his whistle.
It happens all the time. What likely happened is the sideline guy came in and said he thought the foot was in bounds, therefore TD.