Fixed auto-complete to handle case when no item is found not to error.