fix nit in spark.dart

TBR, don't log the stacktrace if it is null