This commit will resolve the issue
https://github.com/discourse/discourse/commit/3b55de90e517f7081006947cc4fabbe5651a65c0