Toolbar layout properties, notably --urlbar-container-height, is
re-computed when window modal dialog is closed and the values would be
totally incorrect if the toolbars are hidden at that time. This fixes#582
and likely several other issues as well.