Yeah, Mat is not the best option for internal materials.
The only thing I could imagine is a check for the Color Channel / Texture slot, because the material has a sky object connected. But I guess that is no good workaround either and only works in that specific situation. Maybe I'll contact support and demand a name change!