dialog: safety check of return pointer to dmq vars field