make html converter fault tolerant