[relationships] fixed working with empty hasOne relationship