Adds a null check to build notifications
Adds a null check to build notifications

Closes #27948

t-zuehlsdorff/gitlabhq,LUMC/gitlabhq,t-zuehlsdorff/gitlabhq,mmkassem/gitlabhq,axilleas/gitlabhq,dreampet/gitlab,iiet/iiet-git,iiet/iiet-git,dplarson/gitlabhq,t-zuehlsdorff/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,LUMC/gitlabhq,dreampet/gitlab,jirutka/gitlabhq,axilleas/gitlabhq,stoplightio/gitlabhq,jirutka/gitlabhq,iiet/iiet-git,darkrasid/gitlabhq,htve/GitlabForChinese,mmkassem/gitlabhq,jirutka/gitlabhq,dplarson/gitlabhq,dreampet/gitlab,axilleas/gitlabhq,darkrasid/gitlabhq,htve/GitlabForChinese,axilleas/gitlabhq,LUMC/gitlabhq,LUMC/gitlabhq,dplarson/gitlabhq,mmkassem/gitlabhq,t-zuehlsdorff/gitlabhq,stoplightio/gitlabhq,stoplightio/gitlabhq,htve/GitlabForChinese,darkrasid/gitlabhq,htve/GitlabForChinese,dplarson/gitlabhq,iiet/iiet-git,dreampet/gitlab,jirutka/gitlabhq,darkrasid/gitlabhq