CS-4870: Fixes check for is_null on variable that is array

Null was the initial value, but gets overwritten on construction of the object.
Then the NULL state is represented by an empty Array, according to that, the
check is changed.
Merge pull request #443 from m038/CS-4870

CS-4870: Fixes check for is_null on variable that is array