If the ID is valid but doesn't exist tp_handle_lookup returns 0 but doesn't set a GError as expected.
Fixed in my branch.
Now in http://monkey.collabora.co.uk/tp-glib-smcv-15387/
Fixed in darcs
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.