Ignore removelistener on doc not loaded

Fixes #117
Merge branch 'master' of github.com:josephg/ShareJS