Fixed no-rendering when val is null.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>