keystore/kwallet: values2key: simplify if-condition