[client] Fix wrong usage of hasFlags()