Add some checks for dfns lacking IDs (due to fatal errors previously).