Fix bad method call from CustomField migration

Fixes T4480.