chore(datalist): Add global vars statement to fix `loadAll()` method

This is considered a chore because the issue it fixes was introduced
during development and never released, so it should not go in the changelog.

Refs #7457