Safe bool conversion. Allows xml_node to be used in a context where boolean variable is expected, such as 'if (node)'.