--- workflow/workflow.module	2007-03-02 14:51:57.000000000 -0600
+++ workflow.module	2007-03-05 12:30:26.000000000 -0600
@@ -478,9 +478,10 @@
   // Notify modules that transition has occurred. Actions should take place
   // in response to this callback, not the previous one.
   module_invoke_all('workflow', 'transition post', $old_sid, $sid, $node);
-  
-  // clear any references in the scheduled listing
-  db_query('DELETE FROM {workflow_scheduled_transition} WHERE nid = %d', $node->nid);
+
+  if ($node->workflow_scheduled) {
+    db_query('DELETE FROM {workflow_scheduled_transition} WHERE nid = %d', $node->nid);
+  }
 }
 
 /**
