org-export: Fix small bug in `org-export-get-genealogy'