Just do a quick check to see if video["container"]["title"] is invalid.
Something like this I would think.
if video["container"] = invalid or video["container"]["title"] = invalid
video_title = "No Title Available"
else
video_title = video["container"]["title"]
end if