Burnley's Jordan Beyer had a moment to forget as he passed the ball straight out of play for a Sunderland corner.