improve search method

if package summary is None, this will break search method.