[Core] Fix static analysis warnings in AHBot (c2550)