Fix out-of-bound array access in `copyPointCloud()`