Imported fix from Ember 1.13013:  Check If Ember Media Manager is called  from a service process or from a Webapplication by redglory