Fix errors against latest Gerrit core

The core change (I7e9c51846) which fixes DynamicOptions to support
custom beans modified the signature of DynamicOptions(). Also, another
core change (Ifc8316278) which tries to avoid the usage of ChangeIndex
removes createChecked(Change.Id) method. Due to which the build for
the tip version of batch plugin fails.

Change-Id: I03b79282804d23bdab74ef575dcb4a28d1e68c77
3 files changed