fixing null pointer exception in search by category methods
fixing example URL in advanced search java doc comment