Check size of MAC vector before reading the element
Check size of MAC vector before reading the element

While clearing the neutron router, Agent some times receives NULL object
without any properties. As this is not a delete operation
ServiceInstance attempts to calcualte the properties of the instance by
traversing the node grpah. When VMI is seen, it attempts to read the mac
address which as such is not preset leading to crash.

As a fix, the mac address is read only if the Mac vector has some
element in it.

Change-Id: Idd2afde67f56728408e5c553d772f30d00a246af
closes-bug: #1474272

reiaaoyama/contrail-controller,tcpcloud/contrail-controller,rombie/contrail-controller,facetothefate/contrail-controller,tcpcloud/contrail-controller,codilime/contrail-controller,reiaaoyama/contrail-controller,rombie/contrail-controller,eonpatapon/contrail-controller,tcpcloud/contrail-controller,codilime/contrail-controller,sajuptpm/contrail-controller,codilime/contrail-controller,eonpatapon/contrail-controller,codilime/contrail-controller,facetothefate/contrail-controller,hthompson6/contrail-controller,sajuptpm/contrail-controller,hthompson6/contrail-controller,vpramo/contrail-controller,rombie/contrail-controller,rombie/contrail-controller,numansiddique/contrail-controller,codilime/contrail-controller,nischalsheth/contrail-controller,vmahuli/contrail-controller,vpramo/contrail-controller,nischalsheth/contrail-controller,nischalsheth/contrail-controller,vmahuli/contrail-controller,vmahuli/contrail-controller,facetothefate/contrail-controller,tcpcloud/contrail-controller,hthompson6/contrail-controller,eonpatapon/contrail-controller,eonpatapon/contrail-controller,rombie/contrail-controller,sajuptpm/contrail-controller,numansiddique/contrail-controller,sajuptpm/contrail-controller,reiaaoyama/contrail-controller,DreamLab/contrail-controller,vpramo/contrail-controller,sajuptpm/contrail-controller,sajuptpm/contrail-controller,rombie/contrail-controller,reiaaoyama/contrail-controller,vpramo/contrail-controller,numansiddique/contrail-controller,hthompson6/contrail-controller,facetothefate/contrail-controller,DreamLab/contrail-controller,numansiddique/contrail-controller,DreamLab/contrail-controller,DreamLab/contrail-controller,codilime/contrail-controller,eonpatapon/contrail-controller,eonpatapon/contrail-controller,reiaaoyama/contrail-controller,nischalsheth/contrail-controller,vmahuli/contrail-controller,nischalsheth/contrail-controller,vmahuli/contrail-controller,tcpcloud/contrail-controller,rombie/contrail-controller,vpramo/contrail-controller,nischalsheth/contrail-controller,hthompson6/contrail-controller,numansiddique/contrail-controller,eonpatapon/contrail-controller,nischalsheth/contrail-controller,facetothefate/contrail-controller,DreamLab/contrail-controller,nischalsheth/contrail-controller,tcpcloud/contrail-controller