Fixed sometimes returning a 0 quantity ItemStack in filterStackToGroup