Fix sync crash caused by invalid object name

Bug: 12523

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Michael J Rubinsky <mrubinsk@horde.org>