Sorry, the script was slightly incorrect. I have since fixed it, thanks for bringing it to my attention.
And I noticed that it will also skip packages with multiple directories under share/gsettings-schemas but there are no normal packages like that – such packages are likely symlink trees and nix-store --query --references should find the original packages in any case.