Modified Filter impl to correctly deal with the fact that the logger might be null; this needs to be changed somehow to get a proper logger.