$developer/publisher’s lawyer still has to show up and explain the confusion to the judge. Not a legal liability but a financial one. Then if one judge somewhere says something something trademark? they would also have to appeal.
It doesn't even get to that point because the first thing someone who wants to file a lawsuit does is hire a lawyer, and the lawyer isn't going to bring the case against the wrong party either.