I've never attended a JW funeral since leaving the JWs, and I don't think I would. Not just because of the potential for shunning, but because I would be so offended by the paltry excuse of a Memorial Service™ that spends more time pimping for the WTS than it does expressing warmth and the sense of loss for the deceased.
I'd rather send a card. That way, the person has to read the sentiments (i.e., associate with you) before seeing the name you sign the card with. You get to express your condolences, a nice memory of the person who has passed away, and sign your name in love and friendship. They can't shun it.