bebob: fix null pointer dereference for control interface

The maximum number of options cannot use as an index of array.