I think this should fix the issue:
https://github.com/discourse/discourse-perspective-api/pull/43
Let me know if not!