Fixed a bug with publishing HTML results with compound categories.
Harmonized how gender fields are read.