Fixed UnsupportedOperationException when a namespace is used in place of an expression.