[bugzilla] fix NPE problem in history building
[Bugzilla, fixes] many fixes for bugzilla plugin