Fixed by @dan in
https://github.com/discourse/discourse/commit/f1b97202d445279e8a64a81fddb5678e636f5114