Setup the error dlg directly before using it.

This way it is properly set up even if the html is loaded async.