Fixes #2224: Fixed ArrayIndexOutOfBoundsException and Function Builder button is now disabled when no cell is selected or selected cell is not editable.