Podrias haces una condicion con file_exists();
Quedaria +o - asi:
Código PHP:
<?php
$dni = $row["DNI"];
if (file_exists("archivos/$dni.jpg")) {
$imagen = "archivos/$dni.jpg";
} else {
$imagen = "archivos/otraimagen.jpg";
}
?>
<img name="" src="<?= $imagen ?>" width="96"
height="108" alt="Fotografía" style="background-color:
#666666">
Mas info en...
http://www.php.net/manual/es/function.file-exists.php