Returns the index component of a DerivationPath.
DerivationPathIndex or null if index is invalid.
DerivationPath to get the index of.
The index component of the DerivationPath.