WICKET-5706 ResourceUtils.getLocaleFromFilename cannot handle filenames with classifiers

(cherry picked from commit 0f8a6d757367e73eaadcb0dff1372d169bcefb76)