[GtkCore] Make sure we were able to resolve the assembly before trying to add a reference

Fixes bug #10933
[GtkCore] Don't allow users to add new Gtk widgets to non-DotNet desktop projects