Throw an exception if the endpoint root parameter is not defined