Fixed class check in mutation filter (related to issue 5586)