Not being Muslim I cannot comment with authority, but I have worked with numerous ME (Saudi,  Emirati, Jordanian, and Egyptian) colleagues and clients in the past and, when discussed, without exception, the gender of Allah is "known" to be male (with particular reference to the Surah given above).  I'm not sure, but I think some Dervish spirituality may differ.
I suspect that the cartoonist is trying to do as you suggest in the first sentence, but Leo would have been the more likely candidate for the quip; at least in my experience.