Fix namespace detection crash (#2949)

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2 files changed