Fix situation where NULL value breaks strlen().
Somehow, $value=NULL can be passed into the function, resulting strlen() to complain.
Closes #3443125
Somehow, $value=NULL can be passed into the function, resulting strlen() to complain.
Closes #3443125