protect against null params to transforms in SQL