added a line to fix bug with null getting stored in local storage.