Fixed exception when deleting item that has many-many relation from list...

... view. Regression from #478

First exception due to underscore not being exposed to the template, second exception due to relations not being populated.