Prevent null result when no matches found

In some instances a null value is returned when there are no matches, even when the original string should be shown (e.g. http://www.concrete5.org/developers/bugs/5-6-1-2/file-manager-search-shows-no-title-if-keyword-is-in-attribute-ra/)