Crash in QGraphicsScenePrivate::setFocusItemHelper
Crash in QGraphicsScenePrivate::setFocusItemHelper

QGraphicsScenePrivate::setFocusItemHelper accesses
views.at(i)->inputContext() without checking if it is null.
This leads to a crash if it really is null.

Fixed by adding a null pointer check.

Task-number: QT-3008
Reviewed-by: axis

pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt