Fix regression introduced in 8.x-2.4 which prevents from excluding content which has been included once.