Fix a crash in QQuickItem::nextItemInFocusChain()

There is no window object yet when Component.onCompleted.

Task-number: QTBUG-33298
Change-Id: I0608d52ee9fe52a0e2c18e81ad7ba99b56078be4
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>