I thought the joker was there to say the things to the king that would get the courtiers heads chopped if they said them, because he would say them in the form of a joke.
When the joker serves the courtiers against a bad king, sure.
And when the joker serves a good king fighting evil forces trying his hands?
He’s fixed it now; guess it was a typo.