Throw correct exception when failing to contact Parsoid

This will allow us to fall back to regular parser.

Change-Id: I57b7006560c3cbd50d4cdf7e0ffb8a5790539939
Merge "Throw correct exception when failing to contact Parsoid"