aamod_norm_write: now checks if structural stream is an input before trying to use it for diagnostic images.