netifd: improve error handling in legacy script compatibility library, do not fill...