Allow default middleware order to be used when custom middleware is specified.