teiiddes-2153a: Added null check and ns for multiple namespaces in message mode