fix: skip Program comment nodes in migration to prevent crash (#18656)