Fixed null parameter handling

I've added handling parameters with null values. Currently sending parameter with null value to assemble function will cause throwing an exception.