Catch not found javascript errors to avoid CORS logging