feat(SearchDoc): Validate "fromid" property in getQueries() method (closes #4935)