small fix to allow nil to be an object's delegate