Fix segfault when setting a utfitem not present (#4904)