Let ipsp_spd_lookup() return an error instead of a TDB. The TDB