[PATCH] xinput: Check we actually received a value before assignment