Fix handling of sessionStorage for the Local Context