fixed $.status.internalServerError() to not blow up when 'detail' param has a circular reference.