Prevents exception when clicking on a collection without any content.