CRAFTERCMS-179: 'Change Template' should not be available on empty folders

The 'Change Template' option in the context menu (in the site dropdown)
should not show up if folders are empty in the Components and Pages
sections.