Fixed via:
https://github.com/discourse/discourse/commit/a78c64db351431bae1e74d03c097c25b23fa4af8
Thanks for reporting this issue @Julien_J