fix handling of get_worlds with emtpty list of world ids