I didn't see it as an attack against organized religion or Judaism. I saw it as a sort of cynical expression of a world weary man who has tried his best by praying. It could be any religion but of course the confluence of the the term wall with the holy site in Jerusalem makes the joke work.