IO.ANSI.escape shouldn't emit a reset sequence if no ANSI sequence was emitted

Closes #807