Prevent loading unpublished page through template. Fixes #12