Bug 1077412 - Restart operation on EAP 5 resource doesn't return failure message when restart fails

(cherry-picked from master 145463496ed1b6dcc7d09193965a77c737bc29b4)