Fix NilClass#to_n to return null