[Bug #8592] - Improve localStorage feature detection