Fix nullpointer when saving new deck.