fix JSON.parse(null)

if window.localStorage.config is null then JSON.parse returns an error about "u" not being valid (the word "undefined" is not valid JSON apparently :). So I test for null-ness first.
Merge pull request #229 from cdwiegand/master

fix JSON.parse(null)