Corrected PageController for unpublished sites