#246880 by mr.baileys: Fixed Error when adding duplicate category to contact form module (with tests).