More resiliency in es_app_to_dict (bug 893219)