QuickItemModel: Make more robust

Track QQuickItem::window changes properly. Untrack the QQI, in case
QQI::window gets set to null.

This fixes a crash for me when inspecting a QQ2-based application that
creates/deletes QQIs on a regular basis.