Re-inserted debug logging
Return null for sessionId if session has not yet been created.  This was causing a new session to be created post session invalidation.  Could have been the issue in CWI-1492