Problem in passing one or few parameters as null in realm function (Bug!)

If we call a realm function from realm-web SDK passing any null parameter, we are getting the following errors.

oie_pPYCHDB507rE

While digging down the clearArgs function, it is found that as typeof null is object, it is throwing the above error. Definition of clearArgs is as follows:

oie_RJ9pz2erIW1n

I think this is a bug in realm-web. Otherwise, please help how to overcome this error.

Just to inform you that I am upgrading my app from MongoDB Stitch to MongoDB Realm and the same function was working in Mongodb Stich.

@Sudarshan_Roy Can you file an issue here please with steps to reproduce - GitHub - realm/realm-js: Realm is a mobile database: an alternative to SQLite & key-value stores