Fix hidden raw text bug when it was not JSON