Handle spurious test run listener callbacks.
Merge pull request #163 from jameswald/test-ended-npe

Handle spurious test run listener callbacks.