GeneratorObjects: Don't trip assertion in eventIndex for a null link.
If we have a null link, we can't do the normal eventIndex() processing. Just return 0 in that case, rather than tripping an assertion.
If we have a null link, we can't do the normal eventIndex() processing. Just return 0 in that case, rather than tripping an assertion.