Fix grass.jsx for invalid input value

Fix EditTextWithLabel.getValue to be return 0 if the value is NaN.
Other minor code refinement.