They still used the song without permission from the true copyright holder. That they made a mistake doesn’t necessarily get them off the hook, although it could give them a claim against the publisher who asserted that they had the rights to the song.