Make the XML handling more resilient to failures
Make the XML handling more resilient to failures

Functions like get_boot_device() could raise a IndexError, this patch is
improving the XML handling by checking if the elements are found in the
XML document before trying to access their attributes.

umago/virtualbmc