Fix bug with click event throwing error when clicking on an empty part of the grid.