Fixes error in Multipoints with Z rendering

Fixes #11379