I slept in the same bed with one of my really good friends, who happens to be a bisexual woman. My partner didn't have an issue with it.
Jealousy is weird. I don't get it. Straight guys are even more weird when it comes to their outlook on gay men. I think it's interesting how insecurity can worm its way out into the open in certain situations.
The internet psychiatrist in me suspects that your husband envies your gay boyfriend because perhaps your gay boyfriend provides you something that he cannot.