[Runtime] Fix application extension registration issue

ISSUE: https://crosswalk-project.org/jira/browse/XWALK-691

When launched as an external web browser, the application extension instance
will be created and trigger "CHECK(application)" assertion failure if
xwalk.app.* APIs are called.

To fix this, now we only create the application extensions after check whether
we have a currently running application in ApplicationService.
Merge pull request #1360 from seanlong/master

[Runtime] Fix application extension registration issue