fix #1565: replace hasActivity() by isAdded()

fix #1565: replace hasActivity() by isAdded() (or isVisible() in a specific case: ReaderPostPagerActivity.java