Improve the handling of errors during salt-ssh refresh of the thin clien...

This improves the error handling of salt-ssh when the refresh of the thin client fails, otherwise a key-error occurs when the non-existent 'grains' key fails to populate.