Prevent error when relationship is defined as null from server.