avoid NPE in scanner when run with the iTest plugin