validate docstatus in workflow, fixes frappe/erpnext#1349