Fixing setAttribute return value for lazy connections.