Here you define ``args['reps_ng_reports']`` only if ``waffle.flag_is_active()``. That means that for the rest of the users not allowed to access content under this flag this never gets defined causing ``'reps_ng_reports' is undefined`` error when rendering the template.