Checking if view is alive before returning it.

If the view widget was deleted (in qt) but we still have a reference to it in a weak-ref, don't return it as being valid.