Added an empty check to Search::setCategoryId() due to stupid usages.