Fix converting null and undefined values.

https://rt.cpan.org/Public/Bug/Display.html?ShowHeaders=1;id=86731