Warily treat empty or invalid pattern (re #120 and #123)

Let the user supply an empty or invalid pattern if she chooses to do so