[index] Add default template parameters in the implementation of is_valid. Remove MPL assert