Fixed bug when no extensions are checked.

The bug was that when no extensions are checked,
the previous run's checked extensions are used instead.
The fix has been tested and confirmed to work.

Fixes #212.