Updated es_app_to_dict to not 500 with missing data