kmsloop: Do not try to get GST_OBJECT_NAME from an non GstObject

Change-Id: I5b60c339cff317e0e80f6c6fffcf2cf98fea35a0