Subset was not working in Java

Hi Julien,

  the jsmessages.JsMessages#subset function was broken.