Fix JSON.parse fail on null return from localStorage