must send endpointInstanceId to RegisterEndpoint

fixes #331