Before this commit, the RunIdIncrementer was failing with a ClassCastException if the run.id parameter is not passed as a Long. This commit makes the RunIdIncrementer more liberal in what it accepts by trying to parse the parameter to a Long. Resolves #3799