Fixed bug #12: Grid's setStateOfCoord not checking for valid inputs