The description of the Guardian specifically states it enhances defenses, and it used to do that until recently:
"The Guardian is part of the Imperial Army and its goal is to develop technologies that improve the planetary defenses."
The Emperor does not grant any defensive bonus, and the description specifically states the officer by itself should grant a bonus.