Jordan Petaia scored with the final play of the game as Australia were thrashed 40-14 by New Zealand in the Rugby Championship.