missed a possible None in es_app_to_dict