Very insightful observation. However, I don't think their mind stays empty when the pattern doesn't fit. As I've observed with my seven year old, they substitute something "close" and just keep going.
By putting the two thoughts together, disdain for islam being "racist" makes much more sense.
I agree