Fixing a bug that was causing a crash in workflow 4.47 (and possibly more)

This is a fix for a bug present in pre6.