Fixing default arguments for "params" parameter

Was set to {} in several cases, which can cause problems. Set to None instead,
then in the function set to {} if the value is None.