[rhel7-branch 2/2] Only try to restart payload in the Anaconda environment