InstancedBufferAttribute not being set from onBeforeRender

I have a small sandbox example here. When I try to set InstancedBufferAttribute from onBeforeRender method of an object nothing happens, why is that?