Handle error case for GetTemplate customization

Fixes aws/aws-cli#1044.

cc @danielgtaylor @kyleknap