Fix timeout response parse error

Fix https://github.com/balanced/balanced-csharp/issues/47

Rather than looking for a 500 error, client tries to create an api error and once that fails returns an HTTP error. Timeouts return a 504, which is why it was hitting the ELSE statement which requires a json object.