Fixes #5699

It's either this or change random Next() to silently ignore incorrect arguments.
No, please use

```csharp
if (resLayer.IsFull(cell.X, cell.Y))
	continue;
```

as I suggested.