Dragon, please don't avoid your friend. Your baby is not her baby if that makes sense.
When this happened to my niece, it hurt her so much when people avoided her. You say she is a close friend, please be honest with her and say,
"X, I am so sorry for what has happened to you, and I would really like to come over and be with you but I feel really worried that you will be upset even more as i will have baby, M with me"
Chances are she is cryiong out for a close friend to be with her and your baby will not make it any worse, believe me, it couldn't be any worse.
I am so sorry you are all going through this, I hope she has been put in touch with SANDS, perhaps you could ask her, and show her the way. Let her talk about her precious baby, talk with her, aknowledge this real little person,look at her photos if she wants to share, cry with her if it happens.
Just be there for her and her family, it's a long long journey but one day she will smile again, and hopefully you'll still be beside her to see it.
xx