Bug fix and better error handling in workflows

Fixed an error where MediumContents was not updated with their new
versions.

Fixed an error where a workflow crashed when it was updated while having
categories attached

Improved the invalid action view to include links to currently valid actions