Fix various nullptr / uniform exceptions

Ref #557 and Ref #558
Merge pull request #11 from TheWeatherCompany/05-2013-aws-autoscaling-support

Fix various nullptr / uniform exceptions