[BUGFIX] Fixed a Bug which caused errors with Gerrit 2.7