Added check for if sessions are available.

    * Added checks for if session manager is available before reading from session.