[Fixed] sometimes being able to overflow inventory when retrieving
resources from a harvester - mantis 5274

Change-Id: I48ddc559ad4e6f7a398f28d5dc00ae5294a283de