Fix for locales plugin to handle case where no locales were specified.
Fixes #30