Fix off-by-one error in listingblock.

This caused that the listingblock was not displayed when only one item
was in the listingblock and the block was not editable.

/cc @maethu