I am shocked no one else noticed this...
At the start of the film, it is clearly established that Luna Lovegood was in Shell Cottage, where she was when the last film left off. The group apparated to there following their collective escape from the Bellatrix LeStrange.
Luna is at Hogwarts upon Harry's arrival, and acts as though she has been there all year. Furthermore, she is in the Gryffindor common room, despite being a Ravenclaw.
Had Luna left Shell Cottage and enrolled herself at Hogwarts, she would surely have been turned in to the Death Eaters. I therefore conclude that there is a continuity error in this film.
Response -- She was never in the Gryffindor common room, she was in the Room of Requirement with the other students who were escaping the Death Eater regime at Hogwarts. She did not "enroll herself to Hogwarts", she got in through the passageway between the Room of Requirement and Aberforth Dumbledore's pub, the Hogs Head.