Fix IndexOutOfBoundsException when scanning recipe outputs

Hit this bug with recipes.removeShapeless()...