Try invoking method connect on CommandBasedWSHumanTaskHandler before registering on the session - assuming you use default configuration. if that is not the case use configureClient method on the handler by submitting your configured and connected client.
HTH