:undef shouldn't equl null string when passed to a function