Fix exception when click on an empty panel

Fix the exception which occurs when a click happens when the diagram panel is empty after the creation of the project.

Merge request reports

Loading