Fix bug affecting work monitor

When localStorage does not contain an entry
for the work monitor options, JSON.parse fails
to parse 'undefined'. Use localStorage.getItem
instead because JSON.parse can handle null.