check for undefined, which is true when the option value is empty
Merge pull request #1 from davekaro/master

Fix problem when option tag values are empty