Check for empty folder before selecting nothing
Fix sidebar context menu item enabling