This is fixed by https://github.com/discourse/discourse/commit/2f70bd83a3b20b0ab89f6cdd596b8bc8d4402c70