JCR-2276: Improve error handling in the case of verifying the existence of a workspace