fix FF error on attempting localStorage clear