Check that record exists before setting it. Correctly set is_html flag.