Fix cppcheck issue "src/api/KWallet/kwallet.cpp:324: Non-boolean value returned from function returning bool".