quietly ignore nil pattern. fixes #2652