Fix for `instance_ids` helper when list is undefined