netdevsim: fix panic in nsim_dev_take_snapshot_write()