Fix replacement-crash when using non-toolpart items