[aws|elb] compact possible nil

forces jruby/1.8 to behave more like 1.9+