update toHtml - if a step is undefined add a line saying so.