Stray [0m should do nothing

Consider output from `ipython -c 'x'`. Currently `jquery.terminal` renders it with garbage on lines 4, 5:
```
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-12-401b30e3b8b5> in <module>()
----> 1 x[[;]
]
NameError: name 'x' is not defined
```
This boils down to stray `[0m`, e.g. compare `\033[31mx\033[0my` and `\033[31mx\033[0my\033[0mz`.