Fix #105: property comparison to undefined is not always safe
Merge pull request #106 from gibson042/105

Fix #105: property comparison to undefined is not always safe