Added error check in notification hub setup files

When there's an error in the listing of hubs as part of the test setup, tests don't check for the error and blindly continue. This leaves us with "can't call filter on undefined" and loses the individual errors.