Set num_dbs_hw_modes to 0 on malloc failure. Change-Id: I29c1a54b290892c149c2c84250042a7115a1d07a CRs-Fixed: 2781988