CRM-15215 - Fix api address validation