I think the girl might've been confused because she'd heard someone address you as female or something else that would conflict with her perception of you as a male. If anything, what she said seems almost nervous, as if she's trying to convince herself more than test you. As in, by bumping your chest and not feeling boobs, she just affirmed that you are male. That's a possibility, at least. Either way, your reaction was a good one.