Backport of:
Backport of:

commit fc45fd6983e12c2701b445dae1f3d99988091eac
Author: Albert Astals Cid <albert.astals@canonical.com>
Date:   Thu Mar 20 16:28:15 2014 +0100

Don't crash on Runtime::getQmlImportedScripts

Task-number: QTBUG-37303

Change-Id: I083ca0cc3223fe0dbf1c768ad43a0d4927579867
Reviewed-by: Simon Hausmann <a975102812d593b3191088e3d0aeaeb6f11dbcf5@digia.com>

matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative