When the rectangle used in an Ellipse has no width or height, the path would panic with "path not closed". Use an empty rectangle path in that case instead. Signed-off-by: Pierre Curto <pierre.curto@gmail.com>