XWIKI-8263: Allow providing translations in a jar extension
* make sure to take into account only JAR extensions
* fix possible nullpointer