Fix NPE in SqlTaskExecution.isFinished