fix possible NPE and tests for AzureProvider
Merge pull request #84 from vladmunthiu/2014.05

fix possible NPE and tests for AzureProvider