QmlDesigner: Fix crash for in file component change

Change-Id: I666dd0ca2b7e50584ae2ad5577ec2f4c685fb209
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>