Fixed error when there is no existing middlewares.
Fixed error when there is no existing middlewares.

summernote/summernote,AshDevFr/winternote,AshDevFr/winternote,summernote/summernote,AshDevFr/winternote,bebeeteam/summernote,summernote/summernote,bebeeteam/summernote,bebeeteam/summernote