Fix unclosed area rendering (fixes #1958)