[core] Fix incorrect _.extend() usage