Flex, a Yorkshire terrier, was the subject of a legal dispute involving tenants of a Yaletown complex