fix max per batch value

`max_per_batch` was starting at nil if the environmental variable wasn't set.