Hermione noticed the girl from the corner of her eye and quickly slipped her wand in her pocket, though she knew it was too late. However, she could easily just say she was bored and twirling sticks around if she asked her any questions. She didn't know why she was so worried though, she was fictional here and she wouldn't be taken to the ministry or anything for giving away magic to muggles.