Make JS util test changes to reflect the annotation updates. (#2447)
* Make JS util test changes to reflect the annotation updates (like not null parameters). This is followup to recent cl/300367316.
* Add non-nullable modifier to return type of functions never returning null. More details in cl/300838092
* Removing blank line.