Fix/unsafe store access

see https://github.com/segmentio/analytics.js/issues/421