check for minimum page data needed to publish

reject publish page attempt if stored page data does not exist. fix variable typo, reverse conditional