Added extra check to Promise matcher.