On the uniqueness of solutions to continuity equations