CRM-14778 handle missing name field

Backporting this mainly to get other backported tests to work