Safer onUpdate in ItemProxy, should fix #1187