St Johnstone will have Peter Pawlett available for their next two matches after Aberdeen agreed to extend the midfielder's loan.