client/server: fixes for nonzero, attribute check failures should raise AttributeError, not KeyError