[PATCH 4/5] d2d1: Set more appropriate error code on geometry population.