fix IE localStorage bug detection logic