Verify that the variable is defined before we try and run a regex on it.
Merge pull request #9 from adamdecaf/uninitialized-value

Verify that the variable is defined before we try and run a regex on it.