Rickles mocks and defuses "stupid" ethnic stereotypes. In this case it is the old stereotype, "black guy = basketball player". When Rickles gets going in his act, people laugh at that kind of humor.
If Obama was a former NBA player then the joke would not have been a Rickles-type joke.
Laugh at it or not, call it a stupid joke or not, with your above long explanation of how the joke would have been funny, you miss the Rickles formula.
I would pay myself a million bucks if I could listen to him 10 min & not outright laugh.