Fix #1225 -- stop `nikola init` from crashing if invalid locales are specified.

This is #1225.