Fix uninitialized attribute.
The element deletion needs to be postponed, otherwise the data
becomes invalid.
Implement glIsShader and glIsProgram in caching_client. We do not
need to call the server to know if the shader/program is a shader object.