Australia had an epic catch denied when the third umpire gave Virat Kohli a life when he should have got a golden duck.