fix bug, died if you want to get a undef value

Signed-off-by: Tarek Unger <tu2@gmx.net>