checkpoint: Fix segfault crash when rollback
When rolling back a checkpoint, NM will crash due to dereference a NULL
pointer of priv->removed_devices->len
.
To fix it, we just place a NULL check before that code block.
Fixes: 1f1b71ad ('checkpoint: preserve devices that were removed and readded')
Reference: https://issues.redhat.com/browse/RHEL-1526
Edited by Gris Ge