Check for dictionary explicitly since we're accessing it as one
Check for dictionary explicitly since we're accessing it as one

Fixes #36373.

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt