#184: html editor destroy function updated to handle null value.