Removed empty menu when clicking on area outside of a registered node