stdenv: fix propagatedUserEnvPkgs when __structuredAttrs is true
This is a follow-up of #388908.
Previously, $out/nix-support/propagated-user-env-packages was not
created when __structuredAttrs is true, the first element of
propagatedUserEnvPkgs is null and the length of propagatedUserEnvPkgs
is at least 2.
Fixes #388829