Bosonic topological insulators at the superconductor-to-superinsulator transition