Change class only if search terms are not null (cf #21)