Fixes an regression with the detection if we should update the layout.