Updated openstack/openstack
Project: openstack/oslo.vmware  ada2a7b20a5f9014e40a0e00d4a8020d57a4c0e4

getText can be called only when doc is not None

Add a check to make sure getText is executed only when doc is
not None.
Without this check, we can potentially get:
AttributeError: 'NoneType' object has no attribute 'getText'

Change-Id: I8e2abd3abf015733642419cb8a3b86aec09c929f