Pass context to HTMLForm, don't use HTMLForm::setTitle

Change-Id: I5d6539bb316c82e4e1f0b09ce03265d02000bc76