Bristol City looked to have won the game with ten minutes to go, but a sublime strike from Emil Riis snatched a point at the death for the North End.