Fixed false positive for 'object is destroyed immediately' when there is no code after the object