Gracefully handle invalid server responses