More gracefully handle situations where Parsoid returns a timeout failure code (HTTP 504)

Bug: 50475
Change-Id: I36d0dc2c44a509d4e40ecadcfb5e3df81e01bca9
Merge "More gracefully handle situations where Parsoid returns a timeout failure code (HTTP 504)"