libnv: fix revert
Reported by: jenkins
(cherry picked from commit 3bea7b5b05f200df4cabee12e405b8feade16f0e)