Minor fix to localStorage polyfill for IE7

Change-Id: I020fb17c314c547ceca4887cf4138c07bc3dbb65