[examples] Challenge: get_state does not crash if a vm is not found in the XML