Autocomplete: Fall back to .ui-front searching for empty jQuery objects

Fixes #9755