Thanks for letting me know. It's been 5 years since I've used this code, so a bug may have been introduced at some point. I know that cards are inserted with a card type. But as long as memorize/ is called, it will take either code or general. At least looking at the code it does.
It is confusing that when you add only code flashcards you cannot start memorizing until you add any general flashcard.