Lamine Yamal's penalty with the last kick of the game rescued Barcelona a 1-1 draw against Newcastle at St James' Park.