Don't feel guilty about it, but you can be aware of the issue and account for it. It's stereotyping. Most of the time, stereotyping works for us in our lives - the stereotype of 'a chair' and 'a tree' and so forth all make sense. If someone says 'can you go out the back and move the chairs under the tree?', you'll know what to look for because of stereotyping. Occasionally you see chairs that take a bit of figuring out before you realise they're chairs.
The problem is when stereotyping fails. When it fails with a chair, there is no problem. When it fails with people, those people are marginalised and it seriously affects them. Given the preponderance of men in programming, it's easy to stereotype a male programmer, but it's something we're aware of being wrong. So don't feel guilty about it, but work to fix it.
Apart from the stereotyping there is a separate issue, being that a lot of men start treating another user quite differently once they find out they're women (hostility, sexual advances etc). That's unforgivable.