Fix rendering of paths that resolve to zero

Fixes #820