Validate comments to allow editing them
Before this commit, changes to comments when editing them could not be
applied because the validation function did not accept comments and as
such rejected them as invalid BibTeX code.
Manual back-port of commit f6a802002110274b7bf036d1a19b.