Fixed razor dependency resolve error handling

When rendering Razor, any exception (invalid config, missing assemblies) will result in an empty result page. This makes it very hard to debug since there is no indication in trace.I expected to receive a clear error.

I extracted the code into a method wrapped in a try catch and returned a NancyRazorErrorView.