Use explicit undef in else case

This is better than leaving it "unset".
Merge pull request #155 from PierreR/patch-1

Use explicit undef in else case