Fixed implementation of method getAttribute by the ClientResource.