Execution of error callback during ajax template loading

I think it will be useful.