[gtk] Find the closest type if no type is found

I reintroduced the error, because now we should find GObject while walking the hierarchy.

This solved the problem in my case.