Fix nullpointer exception when there's no locale selected for sorting
Fix checkstyle
Merge pull request #286 from zanata/rhbz1033411

Fix nullpointer exception when there's no locale selected for sorting