Fix error when the plugin is open the first time 

that happen when the plugin run the first time without a project selected