Nottingham University Hospitals NHS Trust missed two opportunities to detect a mistake that resulted in the death of a child.