Fix not yet defined `global::language` dependency while creating Index

Setting `resource.link` & `resource.href` is optional.