Further optimisation on the representative list

Avoid using the result.object variable if the list item is already
cached, since this it would cause an useless SQL query.