QmlDesigner.ImportManager: Catch exception

Something might go wrong during the rewrite
and we should catch this instead of just crashing.

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