MDLSITE-3564 prevented errors if hub is empty
Merge pull request #1 from andyjdavis/MDLSITE-3564_empty_hub

MDLSITE-3564 prevented errors is hub is empty