token: Fix nk_token_list_replace assertions

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>