Check for null reference when generating synckey