fix crash when combining table & tree

Not sure when this bug crept in, but this restores the functionality
of "Associate table with tree"
Merge branch 'fix_associate_crash'

* fix_associate_crash:
  fix crash when combining table & tree
Merge branch 'master' of git://visomics.org/visomics