Fixed Workflow bug.

  - When deleting an item, the workflow wouldn't deal with any of that
item's children, so algorithms tried to call previous steps that no
longer exist. This resulted in a null pointer error when re-running a
workflow after deleting an item.
 - Also fixed some formatting inconsistencies across the entire plugin.