Isn’t part of the joke that Germans are being discriminated by an innkeeper? And it’s the innkeeper who is in the wrong.
Note of course German Jews and other subpopulations were horribly persecuted in the Holocaust. If this episode targeted those subpopulations then there is a real case.