Fix an issue where the song dialog would not properly close when the song it corresponded to was deleted.