Fix bug in ONMjs.Namespace.update...

Fix namespace/subnamespace update logic, remove superfluous loop exit condition, fix infinite loop hang.