Fix a crash in netmap when using the emulated mode.
This is a direct commit to stable/11 as the -head version was already fixed
by a recent import of a new netmap version.
Submitted by: Vincenzo Maffione <v.maffione@gmail.com>
Sponsored by: Rubicon Communications, LLC (Netgate)