Fixes #11. Fixed NullPointerException when using some overloads of addParameter method with null values.