Resolve #23 - crash when server returns invalid json