AddRoute bug when no middleware are provided