re-apply isNotNil patch that was lost in formatting shuffle

Apologies.  This patch re-applies https://github.com/alexvollmer/tuneup_js/commit/7d6dd73015ddd664790ba0174b5b13d294d9ef10 which was accidentally reverted when doing the style fix.