[mapper] do not make a useless query in HasOne relationship mapper