Set layout to null to suppress warning

Not applied in 0f1660437beba58cd2974f07270b19305b9bbfd9.
Merge pull request #1629 from yous/patch-layout

Set layout to null to suppress warning