Update EC2Cloud.java

Cherry-pick from https://github.com/eucacolby/ec2-plugin/commit/47eef794f1a31407ceb333cd87a4105ee5fdaf33