Bugfix for unpublished page

https://github.com/goldsky/YAMS/pull/4