Fix to API handler for changed buildurl method in AF 5.2.0

Update for the change I introduced in 5.2.0