We were accessing an on-demand created hash table without checking if it had been created first.
Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/2308