don't allocate environments of size 0

this breaks the 1-1 mapping of env_structure and envs. now
env_structure chains can contain extra entries of size 0.