[PATCH 4.4 062/162] lib/xz: Validate the value before assigning it to an enum variable