Check a task's namespace before looking up its parent to ensure it is supposed to have one.