fix bug 845890 - fix demo counts for staff users

Just check the first commit for logical code changes.

0. sign in as super-user
1. mark a demo as hidden
2. go to https://developer-local.allizom.org/en-US/demos/all?sort=created&page=1 as a super-user
3. hidden demo should show in the display and the total count