Fixes CRM-13017.

Permit API key authentication when $params['name'] is set.