Sebastian Ofner prematurely celebrated winning his match at Melbourne Park - only to go on to lose a few minutes later.