Handles missing spaces or orgs when querying CC

[#76289574]
Replaces error handling duplication with ErrorWriter object

[#76289574]