fixing null error for branch in reports