Fixed error handling for the case of JsonClient request. (Using RmcRazorHttpModule.cs)