Add safe headset volume check (2/2) Credit: CyanogenMod

Change-Id: I2b01b6b8ab34988fb6d9248e6badfa23e2a8d771