Of course one would imagine that the date of expiration was known at the time they announced iOS 6 with YouTube in it.
I have little doubt they were planning to remove it the entire time and it just wasn't a high priority issue until the license expired in between beta 3 and beta 4.