Fixed bug throwing an error if dml_with_smoother is called without Z, regardless whether it is a required input or not.
Test added to rule out similar errors in the future