[CI] Catch TimeoutStepExecution for pause steps

Task: https://mirantis.jira.com/browse/PRODX-47373

Change-Id: I882cc0bef0d143f5525f65bced50e9cdf9977e07
diff --git a/src/com/mirantis/mk/Workflow.groovy b/src/com/mirantis/mk/Workflow.groovy
index c6f7e7b..224ae77 100644
--- a/src/com/mirantis/mk/Workflow.groovy
+++ b/src/com/mirantis/mk/Workflow.groovy
@@ -543,11 +543,12 @@
                       "Do you want to proceed workflow?")
                 }
             } catch (err) { // timeout reached or input false
-                def user = err.getCauses()[0].getUser()
-                if (user.toString() != 'SYSTEM') { // SYSTEM means timeout.
-                    error("Aborted after workFlow pause by: [${user}]")
-                } else {
+                def cause = err.getCauses().get(0)
+                if (cause instanceof org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution.ExceededTimeout) {
                     common.infoMsg("Timeout finished, continue..")
+                } else {
+                    def user = causes[0].getUser()
+                    error("Aborted after workflow pause by: [${user}]")
                 }
             }
         }