Minor changes.

Nodify function to check whether the input argument is `nil` before
interpreting its length.