Grade I-listed St Mary Magdalene in Newark is no longer "at risk" following the project.