Improve mashup dependency checking code
Fix inappopriated calls to onFailure
Fix create_workspace_from_catalogue