Fixed bug in test where Scheduler::error might not have been invoked before we attempted to stop the scheduler driver. Review: https://reviews.apache.org/r/10462