Check that view is still in dom

- Thanks to @stefanpenner