Fix NPE during proxy scan.