Thanks for detailed report @Arthri
This has been fixed. https://github.com/discourse/discourse/pull/22010