[Android] Close presentation content already opened when destroying

* Destroy the presentation content to clean up the resources occupied by
  XWalkView to avoid resource leaking
* Refactor some code

BUG=https://crosswalk-project.org/jira/browse/XWALK-1633