Fix index crash when encountering a self-diag record.
Merge pull request #10 from jrconlin/master

Fix index crash when encountering a self-diag record.