Fix bug when checking for validity of Wards API response