A uniqueness result for a class of non-strictly convex variational problems