Fix crash when point cloud has zero points