Fix check_state_result for salt-call --local, Fix #4904