Refs #5003. Change localStorage.removeItem(itemName) calls to localStorage.setItem(itemName, null), because removeItem is incredibly slow in Firefox (tested in 19.0.2)