Fixing segfault for near-zero-sized ellipses