Fix in storage api when chrome variable is unavailable