Let's put the exception testing back here. Basically this code block should look like:

```
if (that.mode === 'edit') {
  if(!that.should_cancel_blur()) {
    $([IPython.events]).trigger('command_mode.Cell', {cell: that});
  }
}
```