assert() to help find some possible causes of #2991. Fix some confusion with GTK...