The self-interaction error and the description of non-dynamic electron correlation in density functional theory