COUCHBASESDK-24 Null check and fix client error in docs