Handle error case for GetTemplate customization

Fixes aws/aws-cli#1044.
Merge branch 'fix-cfn-body' into develop

* fix-cfn-body:
  Handle error case for GetTemplate customization