views: Follow WidgetDelegateView's convention on deleting self.

It could avoid invoking WidgetDelegate's methods when the delegate has been
deleted as a view.