Fix error - check if session available on request object