bugfix for obtaining ancestors

Fix for problem in gene tree highlighting script, where the ancestors were not stored correctly when expanding a given term.