IE7 does not fail gracefully

IE7 does not fail gracefully unless you do a local storage feature detection. A message of "'localstorage' is undefined" appears in the error console without the following code.