Fixed 'Bulk edit' button on 'Ventures' and 'Racks' views.

This is an extension of pull request #865 onto 'Ventures' and 'Racks' views ('Bulk edit' button shouldn't be visible when nothing has been selected from the ventures/racks tree).

It also resolves the issue #852.