It wasn’t supposed to happen this way. They were supposed to find a way to Hogwarts from Hogsmeade, and then find the Diadem in the Room of Requirement and destroy it. They were supposed to go after Voldemort then. They never even got past Hogsmeade before someone raised the alarm.