Guard against undef
Merge pull request #459 from pradermecker/pra

Guard against undef