Added handling for QDeclarativeComponent errors