Optimized object manager handling in WebUserAgent.pm.