[view] [fix] Throw an error if synchronous loader view path is invalid
[http] [fix] Only add the view middleware if there is a valid view folder