Check and omit nulls on optional parameters.