Bug 723644.

Make sure that gnc_search_invoice_on_id() returns the correct type
of object.