rewrite exception handling for listInternetGateways

should return null
Ref #30