[BUGFIX] PHP Warning in HistoryService