jpype backend: changed get_hosts to raise ValueError on negative start/length