properly return a value from non-void function
Fix introspection build

taken from this commit:
https://git.gnome.org/browse/evince/commit?id=1915baa92e72242450b6042603ad0e20de072c17
removed some code that had no effect