This was discovered in https://github.com/KiCad/kicad-footprints/pull/743#issuecomment-405089576
Script fix: https://github.com/pointhi/kicad-footprint-generator/pull/125/commits/97595f518303c07f5494b732109bead6aa3299a2