Fix a bug that occurred if session was started outside the session module after module init time but before a message was added.
Fix a bug that occurred if session was started outside the session module after module init time but before a message was added.

svn commit r11340

silverorange/site,silverorange/site,nburka/site,nburka/site