Handle nulls correctly for all parameters.

Closes #210.