Makes session_id() return empty_string before session initialisation.

Closes #2152