Fixed the Null Pointer issues with Creating Safety Report.