Anchor handling may have changed in javadoc packages, this is fixed by making the code a bit more defensive.