do not store a null value as string on localstorage