Please check the workflow editor console. If I use the code that you provided here, it shows the "Invalid guard for workflow rule..." error. I suppose you should have the same error. It shows the specific code line that is problematic, so please check it.