Fix missing responseText when json is returned