Do not loose element text if element contains children

This will fix reading condition source, when expression grammar or other
properties are specified in XPDL.