Fix bug when a 400 or 403 exception has no detail.