Australia's Sebastian Ofner forgot the rules and celebrated victory prematurely, before going on to lose eight of the next nine points.