salt.state: fix an edge case of inclusion for error reporting
Merge pull request #11470 from makinacorpus/hf1

salt.state: fix an edge case of inclusion for error reporting