$_POST['workflow_state'] is the slug, not the id. So compare term slugs, not ids.
Merge pull request #48 from cojennin/saving-workflow-state

Compare workflow state slug, not ID, props @cojennin