jail: fix a NULL pointer derefence in parsing ip6.addr settings.
This is the counterpart to bd24e861b4ef, which did the same for ip4.
PR: 268377
Reported by: ahkithaama at proton.me
(cherry picked from commit e8d7ae918a105f252cf06249787d82f43e023ba8)