Means to avoid overfilling by preventing gas returning from the container into the filling tank via the liquid valve