fix es_app_to_dict (bug 918051)
Merge pull request #1156 from wraithan/es_app

fix es_app_to_dict (bug 918051)