Fix crashing bug in list module.

Extend list module to deal gracefully with empty datasets, and
show a nice "no data" message.
Merge pull request #522 from alphagov/bugfix/crashing-bug-in-list-module

Fix crashing bug in list module.