The moogle theme may not have originally been taken from Nightmare Before Christmas, but the lyric additions made for the XIV version definitely have the vibe.
Someone, probably Soken or Uematsu, was at least inspired and realized they could totally get away with the sneaky homage and not get sued. Maybe.