Fixed issue where a related item might not exist/have an id.
Fixed issue where a related item might not exist/have an id.

Signed-off-by: davemackintosh <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@davemackintosh.co.uk>

newworldcode/waterline-jsonapi