fix #1231: null check WordPress.currentPost
Merge pull request #1233 from wordpress-mobile/issue/1231-npe-viewpostfragment

fix #1231: null check WordPress.currentPost