Prevents setting and selecting values that are empty regex

I think these are the right places to keep us from using nil regular expressions as values.