Remove trailing backslashes from helm-patterni before searching

This is a hack that handles only one way in which a helm-pattern can be
malformed.  However, this case is very common.  For example when searching for
"\bpattern\b" you invetably have to type "\bpattern\" first, which is an
invalid search expression (violates regular expression syntax).