fixed issue where User.search in NodeBB core was returning an object instead of an array - #862