A uniqueness result for the continuity equation in two dimensions