Fix anomaly factory

When a user specifies "lof" and "unlearner", the current implementation reports no error, but it ignores "unlearner". I modified the logic of the anomaly factory to check this situation.