0.12.1dev: Avoid an internal error when setting the session ID to an existing session.
Part of #9658.
Authored by: rblank 2010-10-01
Parent: [r10160]
Child: [r10162]