goa: Prevent a use-after-free

If the user dismisses the dialog, we'll get an error and free it,
but forget to set it to NULL, and segfault.