What if he wore a Grateful Dead shirt?
Since that's would be "neither here nor there", at least he'd be able to make the argument that it wasn't "controversial" or "political" speech.
But, again, if it was while he was on duty or appearing in court as an officer of the law, it would still probably be frowned upon.
In any event, the two cases are apples and oranges, for obvious reasons...