comdlg32: Only attempt to update the layout if the dialog window exists.