Refactor 'sgen_null_link_in_range'.