Check that view is still in dom

- Thanks to @stefanpenner
Merge pull request #6 from plyfe/race

quick fix for when the promise fulfills but the view is no longer inDOM