Issue #3532360 by aaronbauman: Check for session before calling getSession(), or catch SessionNotFoundException
Closes #3532360