Get rid of erroneous reference to `NullPointerException`.

JavaScript doesn't have any such thing.