Fiuxed exception in Beacon Routine with arr index

Change-Id: I7aac5a40d953630456f2edb2c04862579888e61e
Signed-off-by: Andrey Shamis <lolnik@gmail.com>