Fix NPE in SAMAnnotatedCheck