ModelInstance: only set transform if it's not null