Fix Managed Provisioning crash on OTA

Fixed a crash that happened on OTA for devices that have other profile
types where ManagedProvisioning is not installed.

Bug: 207335612
Bug: 207573077
Fixes: 205276569
Bug: 195630721
Test: manual testing
Change-Id: I716b4aded965af7730860804646317eae7321d7b
Merged-In: I716b4aded965af7730860804646317eae7321d7b
(cherry picked from commit a01c0d7fa435694a76850b446c3efa03cd7a7677)
(cherry picked from commit e3027e5be5286b9d7c2e614759f7303126c80017)
(cherry picked from commit 21fdf3af32d62e7ae7c74d192260914f0f8cb40b)
1 file changed