Properly handle no posts

fixes #4058
- Set noPosts in setupController
Merge pull request #4060 from halfdan/4058-no-posts

Properly handle no posts