udf: Fix regression in UDF anchor block detection