Revert "[relationships] fixed working with empty hasOne relationship"

This reverts commit 824fd7add29b714705d669f1f093db3a5ff3b6ea.
[mapper] fixed passing scalar array for hasOne relationship