[Fixed] generators being able to be destroyed while running and/or with
resources in their hopper - mantis 5424

Change-Id: I084574ca778c524e71af869c0e3d00370e9f83d9