fix 'NoneType' object has no attribute 'published' issue on page publish
Merge pull request #2894 from vinitkumar/fix-pagemodel-publish

fix 'NoneType' object has no attribute 'published' issue on page publish