WebSubmit: fix IndexError in is_hosted_collection