The referee got it wrong, but he does not deserve the abuse he was getting, and certainly not the bottles tossed in his direction.
He could only go to the TMO if he judged the offence to be deliberate, and he did not. He was probably correct in that.
Of course the law will be changed: too late for Scotland, but we've been begging referees to take more decisions themselves in this World Cup: here at least was an occasion were the ref felt obliged to do that.
If he'd NOT called offside and it had proved to have been so, then the Australians would have been out to get him.