fix null ptr dereference of GUIDialogCache. fixes #14065.