[sr-dev] git:4.0: dialog_ng: Fix segfault in dlg_new_dialog