Return the output for ajax exceptions.
Return the output for ajax exceptions.

They were not returned now, causing the code to continue execution. This
ended in exceptions being thrown.

Fixes #1295

jonasdekeukelaere/forkcms,Katrienvh/forkcms,jonasdekeukelaere/forkcms,jacob-v-dam/forkcms,mathiashelin/forkcms,vytsci/forkcms,vytenizs/forkcms,carakas/forkcms,carakas/forkcms,dmoerman/forkcms,riadvice/forkcms,bartdc/forkcms,Thijzer/forkcms,vytsci/forkcms,mathiashelin/forkcms,Thijzer/forkcms,jacob-v-dam/forkcms,riadvice/forkcms,sumocoders/forkcms,vytenizs/forkcms,tommyvdv/forkcms,justcarakas/forkcms,vytenizs/forkcms,sumocoders/forkcms,jessedobbelaere/forkcms,carakas/forkcms,dmoerman/forkcms,jeroendesloovere/forkcms,jeroendesloovere/forkcms,bartdc/forkcms,DegradationOfMankind/forkcms,Katrienvh/forkcms,jessedobbelaere/forkcms,bartdc/forkcms,sumocoders/forkcms,matthiasmullie/forkcms,jonasdekeukelaere/forkcms,mathiashelin/forkcms,forkcms/forkcms,matthiasmullie/forkcms,jeroendesloovere/forkcms,DegradationOfMankind/forkcms,Thijzer/forkcms,tommyvdv/forkcms,forkcms/forkcms,carakas/forkcms,jacob-v-dam/forkcms,Katrienvh/forkcms,carakas/forkcms,jeroendesloovere/forkcms,forkcms/forkcms,sumocoders/forkcms,mathiashelin/forkcms,tommyvdv/forkcms,DegradationOfMankind/forkcms,forkcms/forkcms,tommyvdv/forkcms,DegradationOfMankind/forkcms,jessedobbelaere/forkcms,jonasdekeukelaere/forkcms,vytsci/forkcms,jessedobbelaere/forkcms,dmoerman/forkcms,sumocoders/forkcms,justcarakas/forkcms,Katrienvh/forkcms,riadvice/forkcms,jonasdekeukelaere/forkcms,riadvice/forkcms,justcarakas/forkcms,matthiasmullie/forkcms,jacob-v-dam/forkcms