Fixed the y-axis empty parens bug. (Added a check for empty string).

Associated with #751.