handleMouseClick called with null when no graphic is clicked