QmlDesigner: Fix crash for component source drop

Task-number: QTCREATORBUG-10372
Change-Id: I0b56bf4998dbbdeb690622078d61c672d012ed5a
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>