remove nil in NullType#ref.

Return Nil is implicit in a method and this syntax is used in the others
classes
Merge pull request #13170 from acapilleri/remove_return_nil

remove nil in NullType#ref.