Changed hier.py so that nodes with null dates are never incorporated into the tree structure that is to be stored in the database.