ec2_vpc: Fix error when using InstanceId as a route gateway.

See https://github.com/ansible/ansible/issues/7368

Fixes #7368
Merge branch 'issue_7368' into devel