Empty anchor detection fix (for buggy parsers)