added a check on the model transformer to ensure something was passed through