Fix a html generation crash which occurs when a required variable not is set
Improved handling of config parameters