Only feed valid inputs to the data processing pipeline