nullcheck for todoMap entries