Added error check in notification hub setup files