fix #1588: check for activity destroyed before opening a post

fix #1588: check for activity destroyed before opening a post