Issue #2122431 by mxlav: Fixed JS error when creating rules actions.