prevent NULL-pointer dereference (fixes crash 59920)