Fix bug: only show 'Nothing to display' message if there's nothing to display.