Fixes facility_type search filter.Error handling for the Email API