Correctly resolve entityselector::search's promise

The promise has to be resolved with an array of suggestions and the original
search term.

Change-Id: I2aa81e2c01d8b6d5f47a93931e8867dfb21c41c0
Merge "Correctly resolve entityselector::search's promise"