Perhaps it was in poor taste. Nazi jokes are no laughing matter.
But taking the origin of the name "Nazi" ("national socialists") at face value (the socialism was a facade, privately owned companies and their owners made huge profits on forced labor) or even thinking that the incorrect math of "nationalist" + "socialist" = "national socialist" is entry level humor at best.