Fixed type hinting bug when value is null.