Fix an issue with the list layout when there were 0 items

Not sure how this slipped through, but here we go.