fix bug 839314 - Don't show hidden demos with next/prev

To spot-check, create 3 demos, hide the first and third one, navigate to the 2nd demo, you wont see the next/prex links.