Making copy of clientMap to avoid nil pointer. Also, returning error when client tries to checkout workunit and client is not registered.