Update leaflet-search.js

bug fix null pointer exception