It seems like a very serious bug in netlist creation has been missed in the not yet officially released 5.1.1. This version is however already available for many platforms including at least fedora, ubuntu and windows. (Especially under linux this means many users got this update via their package managers already.)

The discussion is here: https://lists.launchpad.net/kicad-developers/msg40218.html