Fixes #5645: Fixes session undefined error when user has a default taxon...

...omy set.