fix segfault when no sprites are present in the TokenList