prevent a crash if fragment hasn't attached activity
Merge pull request #1216 from wordpress-mobile/issue/1215-illegalstate-nux

fix #1215 prevent a crash if fragment hasn't attached activity