crecord: null out the curses attribute with `None` on failure to import
Pytype got really confused that this could be `Union[module, bool]`, and spewed
about tons of attributes that are not available on `bool`.
Differential Revision: https://phab.mercurial-scm.org/D10210
<tr>
<td class="diffstat-file"><a href="#l{fileno}.1">{file|escape}</a></td>
<td class="diffstat-total" align="right">{total}</td>
<td class="diffstat-graph">
<span class="diffstat-add" style="width:{addpct}%;"> </span>
<span class="diffstat-remove" style="width:{removepct}%;"> </span>
</td>
</tr>