rex_extension_debug: avoid notice, closes #341