Fix bug where search with no results returns empty object ( [{}] instead of [] ).