feat(drivers.localstorage): test for localStorage before init

Equivalent tests existed in webSQL and IndexedDB drivers and was missing
in localStorage driver.