don't crash getStyle when given a text node