Raise exception when pillar data is non-dict (2014.1 branch)

This is #11465, cherrypicked for 2014.1.