Fix code to skip deleted video

Fix code to skip deleted videos