Fix rare NPE in AOE mining