Error handling for failed html fragment matches.