Fixed bug which prevents assigning multiple variables at once

If trying to use 'set' method with only one parameter error was shown
because $value was not defined. Setting a default value of NULL
resolves this.