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