Trigger loaded event to hide spinner if the dropdown is closed and the query is empty.