I'm really not sure about this change. You're modifying a static variable inside prepareNamespaces, so a second call to getWatchList with a different $namespace_head value won't work.