Updated logic to prevent erroneous errors when category or date info is missing.