prevent error `Cannot call method 'indexOf' of null`

See the log https://travis-ci.org/mapbox/node-sqlite3/jobs/24993716 for example.