Fixed salt state checking

Change-Id: Ia3e36d58c985f9af36622a45b460306d7a125fac
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index e3835c4..89a068d 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -296,7 +296,7 @@
                             }
                             resource = node[resKey]
                             common.debugMsg("checkResult: checking resource: ${resource}")
-                            if(resource instanceof String || (resource["result"] instanceof String && resource["result"] != "true")){
+                            if(resource instanceof String || (resource["result"] != null && !resource["result"] || (resource["result"] instanceof String && resource["result"] == "false")){
                                 if(env["ASK_ON_ERROR"] && env["ASK_ON_ERROR"] == "true"){
                                     def prettyResource = common.prettyPrint(resource)
                                     timeout(time:1, unit:'HOURS') {