Fix enable/disable projects behaviour for HM

Change-Id: I43d5e7bd0f5b0cc7ad2e32d187cf5fb41efd6cfc
Closes-Bug: 1392845