only clear client classes which are evaluated
From #1333 (closed)
Addressed by !857 (merged), it is a clear improvement and in some cases a bug fix as for instance a client class set by a hook can be cleared. Note the fix is very limited (i.e. there are other things to do).