Bug fix.

Fixes issue that breaks several unit tests. Fixing this enables use of azure AD with node versions 0.8 and earlier.

CLA paperwork is in progress.