Assert that connector needing layout is attached (#11698)

Change-Id: Ie2d1ec330b857497c7673f3805e35b452f409f3c