Issue #50, added try-catch around autocomplete