Scene serialisation and deserialisation doesn't work when material plugin is used

Scene serialisation and deserialisation starts breaking if I use material plugin in my scene.
It is getting serialized but during loading back that serialised scene it throws an error.

Are you able to setup a simple repro of the problem in the Playground?

This will help us fix the bug.