Fix event chaining with .off()

Reported as https://github.com/zaggino/brackets-git/issues/820.
`.off()`, `.on()` and `.one()` should _always_ `return this`, but there was one case where `.off()` didn't.

Also, moved the condition a few lines - no big deal.