Fix crashing bug in list module.

Extend list module to deal gracefully with empty datasets, and
show a nice "no data" message.