Fix the search of QML types.
Fix the search of QML types.

Stop iterating the multi hash as soon as we find an element with
a different key.

Change-Id: Ie474708229b4040e66b17ceffc5be787856bc905
Reviewed-on: http://codereview.qt.nokia.com/3799
Reviewed-by: Roberto Raggi <5b38c5be65ca2d75b92c40e91029e90f276fd4fe@nokia.com>
Reviewed-by: Qt Sanity Bot <5581206bb7e0307f0d99eb71898ae6b694149ca5@ovi.com>

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