Make possible rendering of a block with a layout and a collection.

Fixes #13354.