Wait for add link instead of continue button

The continue button may not aapear when theres no term to choose.
Handle the case when there is no term to choose

This happens in the beginning of a new term when the previous term is
done and you cannot add courses for the next term yet, so there's only
one term to choose from, which Quest automatically chooses.
Make log more useful
Move variable to its only use place