Initializing session_id before comparison

Change-Id: I42e12c88b067cb2633f41426c2e932ba044b3296