Improve the condition for setting the address for proxy and releasing the address object
It's a follow-up from !67465 (merged) and !68101 (merged)
It seems that in 0fc6d9d1 we had the ref count off by one which led to the memory leak reported in https://its.cern.ch/jira/browse/ATLASG-2660. This MR unconditionally releases the addresses, also for the new output objects.
Edited by Maciej Pawel Szymanski