Fixes #5699

It's either this or change random Next() to silently ignore incorrect arguments.
IMO the IsFull check really should be done as part of CanSpawnResourceAt (you can't spawn if it is full).