EC2: fixed AttributeError when metadata is not found
EC2: fixed AttributeError when metadata is not found

Change-Id: I91e0141bd89cd18596ccae2ea213f641ba4d7f74
Closes-Bug: 1324091

JioCloud/nova,cloudbase/nova,whitepages/nova,Tehsmash/nova,zzicewind/nova,eonpatapon/nova,petrutlucian94/nova,mgagne/nova,felixma/nova,tudorvio/nova,akash1808/nova_test_latest,silenceli/nova,mikalstill/nova,gooddata/openstack-nova,phenoxim/nova,nikesh-mahalka/nova,JioCloud/nova_test_latest,vmturbo/nova,projectcalico/calico-nova,rahulunair/nova,kimjaejoong/nova,klmitch/nova,redhat-openstack/nova,orbitfp7/nova,scripnichenko/nova,LoHChina/nova,mmnelemane/nova,badock/nova,whitepages/nova,cloudbase/nova,Francis-Liu/animated-broccoli,zhimin711/nova,dims/nova,joker946/nova,jianghuaw/nova,double12gzh/nova,cernops/nova,shail2810/nova,varunarya10/nova_test_latest,vladikr/nova_drafts,vladikr/nova_drafts,BeyondTheClouds/nova,zhimin711/nova,devendermishrajio/nova,JianyuWang/nova,orbitfp7/nova,mikalstill/nova,joker946/nova,CCI-MOC/nova,fnordahl/nova,isyippee/nova,raildo/nova,j-carpentier/nova,sebrandon1/nova,projectcalico/calico-nova,yatinkumbhare/openstack-nova,rajalokan/nova,mandeepdhami/nova,shail2810/nova,dawnpower/nova,takeshineshiro/nova,belmiromoreira/nova,alaski/nova,edulramirez/nova,jianghuaw/nova,bigswitch/nova,klmitch/nova,takeshineshiro/nova,TwinkleChawla/nova,rahulunair/nova,petrutlucian94/nova,Juniper/nova,thomasem/nova,cloudbase/nova-virtualbox,zzicewind/nova,dims/nova,tudorvio/nova,eonpatapon/nova,openstack/nova,nikesh-mahalka/nova,BeyondTheClouds/nova,akash1808/nova,gooddata/openstack-nova,cernops/nova,hanlind/nova,ted-gould/nova,thomasem/nova,alvarolopez/nova,yatinkumbhare/openstack-nova,barnsnake351/nova,Francis-Liu/animated-broccoli,iuliat/nova,varunarya10/nova_test_latest,angdraug/nova,NeCTAR-RC/nova,jeffrey4l/nova,Juniper/nova,Yusuke1987/openstack_template,blueboxgroup/nova,jianghuaw/nova,noironetworks/nova,rajalokan/nova,maelnor/nova,klmitch/nova,adelina-t/nova,MountainWei/nova,virtualopensystems/nova,Tehsmash/nova,apporc/nova,akash1808/nova,jeffrey4l/nova,NeCTAR-RC/nova,rajalokan/nova,watonyweng/nova,bgxavier/nova,adelina-t/nova,vmturbo/nova,alexandrucoman/vbox-nova-driver,mahak/nova,MountainWei/nova,Stavitsky/nova,rajalokan/nova,tealover/nova,dawnpower/nova,bigswitch/nova,silenceli/nova,sebrandon1/nova,cloudbase/nova,viggates/nova,Metaswitch/calico-nova,gooddata/openstack-nova,edulramirez/nova,CEG-FYP-OpenStack/scheduler,tangfeixiong/nova,tealover/nova,akash1808/nova_test_latest,mahak/nova,ruslanloman/nova,apporc/nova,saleemjaveds/https-github.com-openstack-nova,CloudServer/nova,affo/nova,angdraug/nova,yosshy/nova,saleemjaveds/https-github.com-openstack-nova,BeyondTheClouds/nova,JianyuWang/nova,devendermishrajio/nova_test_latest,blueboxgroup/nova,Juniper/nova,viggates/nova,devendermishrajio/nova,mandeepdhami/nova,iuliat/nova,raildo/nova,ted-gould/nova,mmnelemane/nova,belmiromoreira/nova,noironetworks/nova,Stavitsky/nova,cyx1231st/nova,alaski/nova,vmturbo/nova,cloudbase/nova-virtualbox,zaina/nova,kimjaejoong/nova,double12gzh/nova,affo/nova,virtualopensystems/nova,maelnor/nova,eayunstack/nova,tianweizhang/nova,isyippee/nova,barnsnake351/nova,scripnichenko/nova,hanlind/nova,fnordahl/nova,vmturbo/nova,CEG-FYP-OpenStack/scheduler,felixma/nova,zaina/nova,redhat-openstack/nova,cernops/nova,Metaswitch/calico-nova,Yusuke1987/openstack_template,alexandrucoman/vbox-nova-driver,openstack/nova,gooddata/openstack-nova,rahulunair/nova,watonyweng/nova,mahak/nova,tangfeixiong/nova,devendermishrajio/nova_test_latest,CCI-MOC/nova,Juniper/nova,JioCloud/nova,bgxavier/nova,tianweizhang/nova,sebrandon1/nova,j-carpentier/nova,mgagne/nova,CloudServer/nova,LoHChina/nova,TwinkleChawla/nova,cyx1231st/nova,openstack/nova,klmitch/nova,yosshy/nova,hanlind/nova,eayunstack/nova,alvarolopez/nova,phenoxim/nova,mikalstill/nova,JioCloud/nova_test_latest,berrange/nova,berrange/nova,ruslanloman/nova,badock/nova,jianghuaw/nova