(captive portal) fix multiple voucher generation, closes https://github.com/opnsense/core/issues/728 (cherry picked from commit 85630abc)