Squash references if they show up at the end of a chapter.

They are rendered at the back of the book by Docbook
Merge pull request #96 from Connexions/force-end-of-chapter-references-to-hide

Squash references if they show up at the end of a chapter.