Using try-catch block to handle common case of empty options isn't nice. Avoid it be replacing options to valid JSON Change-Id: I5b64f7f9a76a94d9c07face8059beab59d4aef93
Based on jquery.uls upstream version 982e2c32e7b3 https://github.com/wikimedia/jquery.uls/commit/982e2c32e7b3 Bug: 64797 Change-Id: Ia8b2ad22913693d2f88693091d288ca74d7d8c87