driver: Properly handle errors during LinkNode steps
Previously we were not properly catching errors during the LinkNode step (see T9930fail test).
This is fixed by wrapping the LinkNode action in wrapAction, the
same handler which is used for module compilation.