Moved checking of whether the ownershipchange event occurred with
hasOwner=false to the loop so that we pass the test only when all
listeners receive that event with hasOwner=false
Change-Id: I463272822e6a39f310fef5996b541e1d06c79548 Signed-off-by: Moiz Raja <moraja@cisco.com>