Quicktext: HTML Conditional Comments Messed Up

Consider the following content:

<!--[if mso]>
<table style="width: 648px;" border="0">
      <tbody>
        <tr>
          <td>
<![endif]-->

<div style="font-family: &quot;Consolas&quot;; max-width: 648px;">TEST</div>

<!--[if mso]>
          </td>
        </tr>
      </tbody>
    </table>
<![endif]-->

The above HTML template gets inserted as below. The <div> gets moved outside the conditional block, changing the whole logic:

<!--[if mso]>
<table style="width: 648px;" border="0">
      <tbody>
        <tr>
          <td>
<![endif]--><!--[if mso]>
          </td>
        </tr>
      </tbody>
    </table>
<![endif]-->
    <div style="font-family: &quot;Consolas&quot;; max-width: 648px;">TEST</div>

Looks like a bug, unless I am missing something