Fix salt.api state to catch undefined data
1 file changed