Bug 1077418 - [hotfix] Restart operation on EAP 5 resource doesn't return failure message when restart fails

(cherry picked from commit 145463496ed1b6dcc7d09193965a77c737bc29b4)