Handle empty relations

relational-pouch requires non empty relations objects, see https://github.com/nolanlawson/relational-pouch/blob/8955f2dab1b137fd30adae801fcd1e72b1742cfd/lib/index.js#L78-L80. This fix allows for records without any relations to other records.