GridLayout: Set dimensions.visibility = '' again if we have a height and a width

Ib07797b4 stopped doing this, which caused VE's transclusion dialog to no longer
show the extra options.

Bug: 72278
Change-Id: I99f5ea387bb3153d71c789910f988f3267d92969