This fixes #8199.  It now ignores a data index of 0.