Make BibTeX parser more robust to mistakes