fail gracefully if a block is missing the `layout` attribute