Fixed a bug where the SelectionTool was throwing an exception due to not checking if the Map was empty before trying to iterate through it and deselect non-existant cells.