Update client.py

handling of doc update responses without id and/or rev - this is needed for the correct handling of security docs.