Fix an assertion in QDeclarativeNotifierEndpoint
Fix an assertion in QDeclarativeNotifierEndpoint

The code in toNotifier() tried to convert to a
Notifier, and called asNotifier() before setting
the type correctly.

Change-Id: I2d4c41c6bf43422587111ae4e0c57a3905f159e0
Reviewed-on: http://codereview.qt-project.org/5089
Reviewed-by: Qt Sanity Bot <5581206bb7e0307f0d99eb71898ae6b694149ca5@ovi.com>
Reviewed-by: Lars Knoll <a812617a4072dcbeb80684eca0f369f0083af109@nokia.com>

corngood/qtdeclarative,mgrunditz/qtdeclarative-2d,jfaust/qtdeclarative,corngood/qtdeclarative,qmlc/qtdeclarative,corngood/qtdeclarative,crobertd/qtdeclarative,qmlc/qtdeclarative,qmlc/qtdeclarative,corngood/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,qmlc/qtdeclarative,crobertd/qtdeclarative,mgrunditz/qtdeclarative-2d,mgrunditz/qtdeclarative-2d,matthewvogt/qtdeclarative,crobertd/qtdeclarative,qmlc/qtdeclarative,jfaust/qtdeclarative,matthewvogt/qtdeclarative,crobertd/qtdeclarative,corngood/qtdeclarative,matthewvogt/qtdeclarative,jfaust/qtdeclarative,matthewvogt/qtdeclarative,corngood/qtdeclarative,jfaust/qtdeclarative,qmlc/qtdeclarative,mgrunditz/qtdeclarative-2d,jfaust/qtdeclarative,jfaust/qtdeclarative,matthewvogt/qtdeclarative,mgrunditz/qtdeclarative-2d,matthewvogt/qtdeclarative,crobertd/qtdeclarative,mgrunditz/qtdeclarative-2d,qmlc/qtdeclarative,qmlc/qtdeclarative,mgrunditz/qtdeclarative-2d,crobertd/qtdeclarative,crobertd/qtdeclarative,jfaust/qtdeclarative,corngood/qtdeclarative