Improves behaviour when an ajax request populates select2's results

It expects that 'searching…' message disappears to continue.

It also fix a mistake when you merged my previous pull request.