St Mirren were cruelly denied a first Scottish Premiership win of the season after Peter Pawlett's late strike earned a 1-1 draw for Aberdeen.