fix(storage): fix 'DOM Exception 18' at feature detection

This fixes a unhandled exception (i.e. iOS) when checking for local storage support.

fixes #629