This is fixed in the commit
https://github.com/discourse/discourse/commit/37bf38f801408035c53faeb8667c445d6f5e48e6