Null values ignored by setParameters-function.

The setParameters-function now ignores null values for function arguments and global parameters.