Fixed by
https://github.com/discourse/discourse/commit/11c47f57f9458422467da8ba6d690d6a31cfa1c0
Thanks.