Fix #1327 - Related agenda item has no (auto) agenda number

Bugix in method get_title. Return item no for related objects.