Tiny fix for undefined results in help search

When you search for something without any results npm dies in a gross looking error, this is a tiny fix that takes care of that. Making a PR in case someone knows this feature better than I do and thinks it's a good idea to put this somewhere else.