Fix working with deferreds

Here's your fix mentioned in https://github.com/zaggino/brackets-git/pull/160