Allow null type in index getter.