Since the Travis build failed again, I went ahead and ran the test in the browser locally. The error that showed up in the console points to this line. refPoint is sometimes undefined, but sometimes null; you need to test it for not being falsy rather than just not undefined, like so:

`if (refPoint) {`