bibtex: Robustify code extracting year and month from date
Previous implementation could lead to errors when an invalid date is present in source codemeta.
Fix citation generation for https://archive.softwareheritage.org/browse/origin/directory/?origin_url=https://github.com/htcondor/htcondor