Handle times when the instance name cannot be set.

This was occurring when the instance id was reported as invalid by the
EC2 client. We're assuming this is a timing issue as it's a new image.
Merge pull request #5 from MarkBennett/handle-invalid-id-when-naming-instance

Handle times when the instance name cannot be set.