Added some sanity checks to the conditions editor.