[12735] Fix static analysis warnings in AHBot

Signed-off-by: stfx <stfx@hotmail.de>