Get the OID for the submodule in the index.
Pointer to submodule object
Pointer to git_oid or NULL if submodule is not in index.