Steps to reproduce:
create a new patient record
go to the "Genotype information" section
add a new gene, e.g. "TP53"
add a new variant for that gene
Expected result: the variant table appears, and its "title" is "Variants for TP53 (1)".
Actual result: the variant table appears, but its title is "Variants for (1)" (no gene name).
After saving the record, the title is correct in both view and edit mode.