You have to put a fill behind the text. Text shadows appear when the text
is not inside a filled region of the shape. I agree that this is odd
behavior.
Also, if you need to give the shape a fill to get rid of the text shadow,
but you really would prefer that there be no fill, make the fill 100%
transparent.