make get_parent() work in xml modulestore