Fix inconsistent YT JS API loaded checking