Only show visible groups in doc collection contents

Groups containing no documents or no published documents would be
displayed in the contents list but not in the main content.

Follow up for https://www.pivotaltracker.com/story/show/61211960