problem with generating documents
Null custom fields values prevent document generation: https://git-r3lab.uni.lu/NCER-PD/scheduling-system/-/blob/master/smash/web/models/mail_template.py#L341
All usages of get_custom_field_value
in this class should be checked