Adjust plugin to work with latest Gerrit core

Main-Author: Makson Lee
Bug: Issue 7323
Change-Id: I699aeffdd051b22244903da74674e8a84cbdb88d
2 files changed