Safely check enabled of services

Change-Id: Ibc47efe5fe9840e97b0f1545511e51afc7da728c
Related-PROD: PROD-29652
(cherry picked from commit 7c22e25b8ff3a5bc5f15c12f33cddc9751e6aab2)
4 files changed